<template>
  <div class="home">
    <el-container>
      <el-header>
        <div>logo</div>
        <div class="right">
          <nav>
            <router-link to="/home/index"> 数据一览 </router-link>
            <router-link to="/home/query"> 数据查询 </router-link>
            <router-link to="/home/record"> 报警记录 </router-link>
            <router-link to="/home/publi"> 数据报表 </router-link>
            <router-link to="/home/abnor"> 异常数据 </router-link>
            <router-link to="/home/reports"> 数据公示 </router-link>
            <!-- 借助路由管理对象this.$router,通过js代码跳路由
      this.$router.push('/')      go(1)前进一条路由  -1 退回上一级路由
      replace('/')替换路由
      -->
          </nav>
          <router-view />
        </div>
      </el-header>
      <el-main>Main</el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "HomeView",
};
</script>

<style lang="scss">
.el-header{
  display: flex;
  .right{

  }
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
